package vehement.game.AI;

//import java.awt.Point;

import java.util.LinkedList;
import java.util.Queue;

import org.lwjgl.util.Point;

/**
 * This holds a path from where someone is to where they are going.
 *  It is made from 2d integer locations, representing tiles
 * @author bloodred
 *
 */
//TODO: straight lines don't need every intermediate node

public class Path {
	Point test;
	
	public Path(){
		path= new LinkedList<Point>();
	}
	public void addNode(int x, int y){
		path.add(new Point(x,y));
	}
	public void print(){
		System.out.println(path.size() );
	}
	public Point peek(){
		return path.peek();
	}
	public Point remove(){
		return path.remove();
	}
	
	public boolean hasNext(){
		return !path.isEmpty();
	}
	private Queue<Point> path; 
}
